/**
 * There are code generation
 */
package com.neusoft.lohas.modules.ivm.dao.order;

import org.springframework.stereotype.Repository;

import com.neusoft.lohas.common.persistence.BaseDao;
import com.neusoft.lohas.common.persistence.Parameter;
import com.neusoft.lohas.modules.ivm.entity.order.Prompt;

/**
 * 温馨提示DAO接口
 * @author Jackie.Liu
 * @version 2015-03-02
 */
@Repository
public class PromptDao extends BaseDao<Prompt> {

	public Prompt findByMerchantId(String merchantId) {
		return getByHql("from Prompt where merchant.id = :p1 and delFlag = :p2", new Parameter(merchantId, Prompt.DEL_FLAG_NORMAL));
	}
}
